<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<table border="1px" cellpadding="0" cellspacing="0">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>sex</td>
        <td>hobby</td>
        <td>created_at</td>
        <td>updated_at</td>
        <td>操作</td>
    </tr>
    @foreach($list as $l)
        <tr style="background-color: #2aa576">
            <td>{{$l->id}}</td>
            <td>{{$l->name}}</td>
            <td>{{$l->sex}}</td>
            <td>{{$l->hobby}}</td>
            <td>{{$l->created_at}}</td>
            <td>{{$l->updated_at}}</td>
            <td>
                <a href="form">编辑</a>
                <a href="">删除</a></td>
        </tr>
    @endforeach
</table>
</body>
</html>
